package com.swas.service;

import com.swas.entity.Base;
import com.swas.entity.BaseDevice;
import com.swas.entity.BaseStock;
import com.swas.entity.BaseType;

import java.util.List;

/**
 * @author lxysky
 */
public interface BaseService {

    List<Base> selectBaseAll();

    List<BaseStock> selectBaseStockAll();

    boolean deleteBaseStockById(Integer id);

    boolean updateBaseTypeById(BaseType baseType);

    BaseStock selectBaseStockById(Integer id);

    boolean insertBaseStock(BaseStock baseStock);

    boolean insertBase(BaseType baseType);

    BaseType selectBaseTypeByName(String name);

    List<BaseDevice> selectBaseDevice(Integer id);

    boolean updateDeviceStatus(BaseDevice baseDevice);

    boolean addOneDevice(BaseDevice baseDevice);
}
